﻿@model List<String>

@{
    Layout = null;
    List<String> noUseList = Model;
}
<script src="~/Scripts/jquery-1.10.2.js"></script>
<!DOCTYPE html>


<div>
    <div>private方法 <span id="allZk">全部展开</span></div>
    <div id="contentDiv" style="height: 200px;overflow: scroll">
        @foreach (string noUse in noUseList)
        {
            <div>@noUse</div>
        }
    </div>
</div>
<script>
    $(document).ready(function() {
        $("#allZk").click(function() {
            $("#contentDiv").css("height","100%");
        });
    })

</script>